package com.vincent.suchao.lcld;

import javax.crypto.spec.IvParameterSpec;


import android.app.Activity;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.os.Handler;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
import android.view.animation.Animation.AnimationListener;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;

public class SplashActivity extends Activity {
	private final int SPLASH_DISPLAY_DELAY = 4000;
	private RelativeLayout rl_splash;
	private Handler mHander;
	private Runnable mForwardTask;
	Animation fadeInAnim;

	// Animation fadeOutAnim;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_splash);
		initUI();

		mHander = new Handler();
		mForwardTask = new Runnable() {
			@Override
			public void run() {
				Intent mainIntent = new Intent();
				mainIntent = new Intent(SplashActivity.this, MainActivity.class);
				startActivity(mainIntent);
				finish();

			}
		};
		mHander.postDelayed(mForwardTask, SPLASH_DISPLAY_DELAY);

	}

	private void initUI() {

		rl_splash = (RelativeLayout) findViewById(R.id.rl_splash);

	}

	@Override
	protected void onDestroy() {
		super.onDestroy();
	}

	@Override
	protected void onPause() {
		super.onPause();

	}

	@Override
	protected void onResume() {
		super.onResume();

	}

	@Override
	protected void onStart() {
		super.onStart();
	}

	@Override
	protected void onStop() {
		super.onStop();
	}

}
